<!DOCTYPE html>
{% if page.lang %}
<html lang="{{ page.lang }}">
  {% include head.html %}
  {% if page.lang == 'en' %}
  <body class="en-doc sticky {{ page.section }}-page {{ page.name | replace:'.md', ''}}">
  {% else %}
  <body class="non-en-doc sticky {{ page.section }}-page">
  {% endif %}
  {% include header/header-{{ page.lang }}.html %}
  <section class="content">
    {% include sidebar.html %}

    <div class="content-container">

      <div class="content-main">

        <div class="search-wrapper algolia-mobile-search">
          <span class="algolia-autocomplete" style="position: relative; display: inline-block; direction: ltr;"><input class="search_input_mobile ds-input" placeholder="Search documentation..." autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-owns="algolia-autocomplete-listbox-0" dir="auto" style="position: relative; vertical-align: top;"><pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre; font-family: Saira, sans-serif; font-size: 18px; font-style: normal; font-variant: normal; font-weight: 400; word-spacing: 0px; letter-spacing: normal; text-indent: 0px; text-rendering: auto; text-transform: none;"></pre><span class="ds-dropdown-menu" role="listbox" id="algolia-autocomplete-listbox-0" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="ds-dataset-1"></div></span></span>
          <div class="PM2_search_icon"><i class="fas fa-search"></i></div>
          <div id="hits" class="algolia-results">
            <!-- Hits widget will appear here -->
          </div>
        </div>

        <div class="breadcrumbs">

          {% assign breadcrumbs = page.title | replace: "| PM2 Documentation", ""| replace: "| PM2 Plus Documentation", "" | replace: "| PM2 Enterprise Documentation", "" | split: " | "  | reverse %}
          <p>PM2 {{page.section | capitalize}}{% for item in breadcrumbs %}{% if item %} | {{ item }}{% endif %}{% endfor %}</p>
        </div>

        <main id="main" class="markdown-section">
          {% include edit-page/edit-page-{{ page.lang }}.html %}
          <section>
            {{ content }}
          </section>
          <aside>
            {% if page.hide_comments %}
            {% else %}
            <h2 id="questions">Questions?</h2>
              {% if page.section == 'runtime' %}
              <p>We are always happy to help with questions you might have. Use the search or check out the FAQ. You can also post questions or comments on the <a href="https://github.com/Unitech/pm2/issues">PM2 github repository</a>.</p>
              {% else if page.section == 'enterprise' %}
              <p>Contact our engineering team at  <a href="mailto:tech@keymetrics.io">tech@keymetrics.io</a> if you have any questions/issues</p>
              {% else if page.section == 'plus' %}
              <p>We are always happy to help with questions you might have. Use the search or check out the FAQ. You can also post questions or comments on our <a href="https://github.com/keymetrics/keymetrics-support/issues">github help repository</a>.</p>
              {% endif %}
            <div id="gitalk"></div>
            {% endif %}
          </aside>
        </main>


        {% include footer/footer-{{ page.lang }}.html %}
      </div>
    </div>
  </section>

  {% include meta-footer.html %}
  </body>
</html>
{% endif %}
